﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Globalization;
using Public;

namespace SalomonWebsite
{
    public partial class Article : System.Web.UI.Page
    {
        public string notesTitle = "";
        public string notesContent = "";
        public string notesCode = "";
        public string keywords = "";
        public string description = "";

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request["val"] != null && Request["val"].ToString() != "")
                {
                    string strCode = Request["val"].ToString();
                    DataTable dtNotes = Bll.Notes.Single(Global.Connection, strCode);
                    if (dtNotes.Rows.Count == 1)
                    {
                        notesTitle = dtNotes.Rows[0]["NotesTitle"].ToString();
                        notesContent = dtNotes.Rows[0]["NotesContent"].ToString();
                        notesCode = dtNotes.Rows[0]["NotesCode"].ToString();
                        keywords = dtNotes.Rows[0]["Keywords"].ToString();
                        description = dtNotes.Rows[0]["Description"].ToString();


                    }
                    dtNotes.Dispose();
                }
                else
                {

                }
            }
                        
        }
    }
}
